FROM Python
WORKDIR /opt/api_code
COPY . /opt/api_code/
RUN pip install  -i https://mirrors.aliyun.com/pypi/simple/ --upgrade pip
RUN pip3 install --index-url https://mirrors.aliyun.com/pypi/simple/ --no-cache-dir -r requirements.txt
ENV PYTHONUNBUFFERED 1
LABEL Description :"enviroment for fast_api development"

ENTRYPOINT [ "/bin/bash","-c",]